﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Core.WcfService;

namespace JXT.PrimaryKey.Batman.WcfService.Client
{
    public class WcfOperationException : Exception {
        public WebHttpError Error { get; private set; }

        public string RawString { get; private set; }

        internal WcfOperationException(Exception innerException, WebHttpError error,string rawString)
            : base(error.Message, innerException) {
            Error = error;
            RawString = rawString;
        }

        internal WcfOperationException(WebHttpError error, string rawString)
            : base(error.Message) {
            Error = error;
            RawString = rawString;
        }
    }
}
